package com.college.ucenter.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 评论
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "edu_comment")
public class EduComment {
    /**
     * 讲师ID
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    /**
     * 课程id
     */
    @TableField(value = "course_id")
    private String courseId;

    /**
     * 讲师id
     */
    @TableField(value = "teacher_id")
    private String teacherId;

    /**
     * 会员id
     */
    @TableField(value = "member_id")
    private String memberId;

    /**
     * 会员昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 会员头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    @TableField(value = "is_deleted")
    private Byte isDeleted;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}